package models

import (
	"go.mongodb.org/mongo-driver/bson/primitive"
)

type User struct {
	Id          primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	UserName    string             `json:"userName,omitempty" bson:"userName,omitempty"`
	HeadUrl     string             `json:"headUrl,omitempty" bson:"headUrl,omitempty"`
	Description string             `json:"description,omitempty" bson:"description,omitempty"`
	PassWord    string             `json:"password,omitempty" bson:"password,omitempty"`
}

func NewUser(userName, headUrl, description, password string) *User {
	return &User{
		UserName:    userName,
		HeadUrl:     headUrl,
		Description: description,
		PassWord:    password,
	}
}
